<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>欢迎光临 Music Store</title>
    	<script src="${pageContext.request.contextPath}/script/jquery-1.10.2.js"></script>
	<link type="text/css" rel="Stylesheet" href="${pageContext.request.contextPath }/style/front.css"/>
  </head>
  
  <body>
    <div id="wrapper">
    	<s:action name="header" executeResult="true" namespace="/"></s:action>
    	<div id="content">
    		<s:action name="sidebar" executeResult="true" namespace="/"></s:action>
    		<div id="main">
    			<h3 id="main-title">最新热销唱片</h3>
    			<div id="hotAlbums">
	    			<c:forEach items="${albumList }" var="a">
	    				<dl class="hotAlbumsItem">
	    				<dt>
	    					<a href="details?id=${a.id }"><img src="${pageContext.request.contextPath }/CoverImages/${a.id }.jpg" alt=""/></a>
	    				</dt>
	    				<dd>${a.title }</dd>
	    			</dl>
	    			</c:forEach>
    			</div>
    		</div>
    		<div class="clearBoth"></div>
    	</div>
    	<%@ include file="../shared/footer.jsp" %>
    </div>
  </body>
</html>
